Skip to content

Options ​

The fundamental logic is no arbitrage: an option is priced as the cost of a portfolio of the underlying and a risk-free bond that replicates its payoff.

Binomial Option Valuation ​

Basic Formula ​

Given risk neutrality, the formula at each step of length Δt is:

Su=S0⋅uSd=S0⋅dpu=erΔt−du−dpd=1−puCT=max(ST−X,0)C0=e−rΔt(puCu+pdCd)

Here r is continuously compounded; with a discrete rate, replace erΔt by (1+r)Δt, as in the CFA notation below. For more than one step, apply the last line at every node, from the expiry back to today (backward induction).

The code below prices European or American calls and puts on a tree, and reproduces the two-period example below. It takes the up and down factors directly; crr_factors builds them from a volatility, and annualized_volatility estimates that volatility from a price history (e.g., SPY closes over the last 30 trading days).

python
import math


def binomial_price(S, X, r, u, d, n, option="call", american=False):
    """Price an option on a recombining binomial tree.

    S: spot price; X: exercise price; r: risk-free rate per step (discrete);
    u, d: up and down factors per step; n: number of steps.
    """
    pi_u = (1 + r - d) / (u - d)                 # risk-neutral up probability
    if not 0 < pi_u < 1:
        raise ValueError("no-arbitrage requires d < 1 + r < u")
    payoff = (lambda s: max(s - X, 0.0)) if option == "call" else (lambda s: max(X - s, 0.0))

    # Values at expiry: node j has j down moves.
    values = [payoff(S * u ** (n - j) * d ** j) for j in range(n + 1)]

    # Backward induction: discounted risk-neutral expectation at each node.
    for step in range(n - 1, -1, -1):
        for j in range(step + 1):
            hold = (pi_u * values[j] + (1 - pi_u) * values[j + 1]) / (1 + r)
            if american:                         # exercise early if worth more
                hold = max(hold, payoff(S * u ** (step - j) * d ** j))
            values[j] = hold
    return values[0]


def crr_factors(sigma, dt):
    """Cox-Ross-Rubinstein up/down factors from volatility: U = e^(σ√Δt), D = 1/U."""
    u = math.exp(sigma * math.sqrt(dt))
    return u, 1 / u


def annualized_volatility(close, window=30, periods_per_year=252):
    """Volatility from the last `window` log returns of a pandas Series of prices."""
    import numpy as np
    log_returns = np.log(close / close.shift(1)).dropna()
    return log_returns.iloc[-window:].std() * math.sqrt(periods_per_year)


# The two-period example below: S = 50, X = 50, r = 5%, U = 1.356, D = 0.744
binomial_price(50, 50, 0.05, 1.356, 0.744, 2, "call")                 # 9.71
binomial_price(50, 50, 0.05, 1.356, 0.744, 2, "put")                  # 5.06
binomial_price(50, 50, 0.05, 1.356, 0.744, 2, "put", american=True)   # 6.10

NOTE

The volatility is held constant through the tree. If U changed from step to step, an up-then-down path would no longer end at the same price as a down-then-up path, and the tree would stop recombining.

Components ​

Basic assumptions of binomial tree:

  • Begin at S0.
  • Each step, the price moves up by a factor U or down by a factor D, with D<1+rf<U (otherwise there is an arbitrage). By default D=1U.

Model one ​

The usual choice of U and D (Cox, Ross and Rubinstein) assumes the log of the price follows a random walk: each step, ln⁡S moves up or down by σΔt. So

U=eσΔt,D=e−σΔt=1U

and with Δt=1, Su=Seσ=SU and Sd=Se−σ=SD. The same idea, applied to interest rates rather than prices (dr=σdw, where w is a random walk), gives the interest rate trees of Fixed Income.

Risk-Neutral Probability ​

Inferred from no arbitrage: in a risk-neutral world, the stock's expected price must grow at the risk-free rate.

E(St)=πuS0U+(1−πu)S0D=S0(1+rf)t

Solving for πu:

πu=(1+rf)t−DU−Dπd=1−πu=U−(1+rf)tU−D

These are not the real-world probabilities: they are the probabilities that make discounting at the risk-free rate give the arbitrage-free price. Neither the actual probabilities nor the stock's expected return enter the option price.

One Period Binomial Model ​

Now assuming a European option, its payoffs after one step are:

Cu,t=max(0,Su−X)Pu,t=max(0,X−Su)Cd,t=max(0,Sd−X)Pd,t=max(0,X−Sd)

Then the value today is the risk-neutral expected payoff, discounted:

C0=πuCu,t+πdCd,t(1+rf)tP0=πuPu,t+πdPd,t(1+rf)t

Put-Call Parity ​

A fiduciary call (a call plus a risk-free bond paying X) and a protective put (the stock plus a put) have the same payoff, max(ST,X), so they must have the same price:

Fiduciary callProtective put
c+X(1+rf)tS+p
If S ≤ X0+X=XS+(X−S)=X
If S ≥ X(S−X)+X=SS+0=S

Then we have:

c+X(1+rf)t=S0+p

Risk-free Portfolio Method ​

  1. Construct a risk-free portfolio by buying δ shares and selling one call. Its value at time 0 is:

    V0=δS0−c0
  2. Then at t:

    Vu,t=δSu−CuVd,t=δSd−Cd
  3. Since the portfolio is risk free, Vu,t=Vd,t, then we solve for the hedge ratio:

    δ=Cu−CdSu−Sd=Cu−CdS0(U−D)
  4. A risk-free portfolio must earn the risk-free rate, Vu,t=(1+rf)tV0. Substituting V0=δS0−c0:

    c0=δS0−δSu−Cu(1+rf)t

    which gives the same value as the risk-neutral probability method.

NOTE

If the market price of the call differs from this value, there is an arbitrage: trade the call against δ shares per call (δ is the hedge ratio) and borrow or lend the difference.

Two Period Binomial Model ​

Same as one period model, πu and πd could be calculated with same method (actually same number, as long as U, D and the step length don't change!). Then work backward one step at a time: at each node, the value is the discounted risk-neutral expectation of the two values one step later.

Example ​

Consider a non-dividend-paying stock currently priced at €50. A European-style call option written on this stock has two years until maturity and an exercise price of €50. The risk-free interest rate is assumed to be 5% per annum. Additionally, the up factor (U) is given as 1.356 and the down factor (D) is 0.744. Based on this information, we are tasked with calculating both the current value of the call option and the current value of the corresponding put option.

To solve the problem, we begin with

Step 1: calculating the stock prices in the binomial tree. The up-up price is S++=91.94, the up-down and down-up price is S+−=S−+=50.44, and the down-down price is S–=27.68.

Step 2, we compute the option values at maturity. For the call option, we have C++=41.95, and both C+−=C−+=0.44. The down-down call value is C–=0. For the put option, we get P++=P+−=P−+=0, and P–=22.32.

Step 3 involves calculating the risk-neutral probability. The up probability is πU=(1+0.05)−0.7441.356−0.744=0.5, and the down probability is πD=1−πU=0.5.

Next, we calculate intermediate option values. For the call, C+=(0.5×41.94+0.5×0.44)1.05=20.18, and C−=(0.5×0.44+0.5×0)1.05=0.22. For the put, P+=(0.5×0+0.5×0)1.05=0, and P−=(0.5×0+0.5×22.32)1.05=10.63.

Step 4, we calculate the initial values. The call option is worth C0=(0.5×20.18+0.5×0.22)1.05=9.71, and the put option is worth P0=(0.5×0+0.5×10.63)1.05=5.06.

As an additional tip, using the put-call parity formula, we can verify:

P0=C0+PV(X)−S0=9.71+50(1.05)2−50=5.06.

The stock price tree and the call value tree in the chart are this example; the other two are the interest rate trees of Fixed Income.

Advance Exercise of American Option ​

  • American call options on non-dividend stock will not be exercised early, because the call is worth more than its exercise value, S−X: it is worth more alive than dead. So an American call on a non-dividend stock is worth the same as a European one.
  • An American call on a dividend-paying stock may be exercised early, just before the stock goes ex-dividend, to capture the dividend.
  • An American put may be exercised early when it is deep in the money: receiving X now and earning interest on it can be worth more than waiting.

Two Period Binomial Model of American Option ​

American option may be exercised early when:

  • Exercise value is greater than arbitrage-free value
  • Use the higher between exercise value and calculated price at each node.

NOTE

Calculate the option value if exercised, at every node, not only at expiry.

For example, if the put in the two-period example above were American, at the down node its exercise value would be 50−37.20=12.80, more than its hold value of 10.63. The put would be exercised there, and its value today would rise from 5.06 to 6.10 (see the code above).

Interest Rate Option ​

The valuation process is the same as the standard binomial model, on an interest rate tree, but the payoff is multiplied by the notional principal (and the accrual period), e.g., a call pays NP×max(0, r−X)×accrual period.

Black-Scholes Model ​

Assumption ​

The Black-Scholes model is the continuous version of the binomial model: the limit as the number of steps →∞ (so Δt→0).

  • The underlying asset follows Geometric Brownian Motion: its returns are normally distributed and its price is lognormal, and it moves smoothly from price to price (continuous).
  • The continuously compounded risk-free rate is constant and known. Investors can borrow and lend at the risk-free rate.
  • The volatility of underlying asset is constant
  • The market is frictionless:
    • No transaction costs, no taxes, no regulatory constraints
    • No arbitrage
    • The underlying asset is highly liquid, and continuous trading
    • Short selling of the underlying asset is permitted
  • The options are European.

Basic Formula ​

The formula for Black-Scholes is:

C0=S0N(d1)−Xe−rfcTN(d2)P0=C0+Xe−rfcT−S0=−S0N(−d1)+Xe−rfcTN(−d2)d1=ln⁡(S0X)+(rfc+12σ2)TσTd2=d1−σT

The code prices calls and puts, with an optional continuous dividend yield q (the next section), and needs no libraries: N(⋅) comes from the error function.

python
import math


def norm_cdf(z):
    return 0.5 * (1 + math.erf(z / math.sqrt(2)))


def black_scholes(S, X, T, r, sigma, q=0.0, option="call"):
    """BSM price. r and q are continuously compounded; q is the dividend yield."""
    d1 = (math.log(S / X) + (r - q + 0.5 * sigma ** 2) * T) / (sigma * math.sqrt(T))
    d2 = d1 - sigma * math.sqrt(T)
    if option == "call":
        return S * math.exp(-q * T) * norm_cdf(d1) - X * math.exp(-r * T) * norm_cdf(d2)
    return X * math.exp(-r * T) * norm_cdf(-d2) - S * math.exp(-q * T) * norm_cdf(-d1)


black_scholes(50, 50, 1, 0.05, 0.3)                # 7.1156
black_scholes(50, 50, 1, 0.05, 0.3, option="put")  # 4.6771 = C - S + X e^(-rT)

With 500 steps and crr_factors(0.3, 1/500), binomial_price gives 7.1127 for the same call: the tree converges to Black–Scholes.

Initial Model ​

Similar to put-call parity, the formula shows the replicating portfolio:

  • A call option is a leveraged stock investment: long N(d1) shares, financed by borrowing N(d2)Xe−rfcT, i.e., short a risk-free zero-coupon bond.
  • A put option is long N(−d2) units of a risk-free zero-coupon bond paying X, plus short N(−d1) shares.

Conclusion of N(d1) and N(d2) ​

  • N(d1) is the δ of call option
  • −N(−d1) is the δ of a put option
  • N(d2) is the risk-neutral probability that a call option will be exercised at expiration (ITM).
  • N(−d2) is the risk-neutral probability that a put option will be exercised at expiration (ITM).
  • N(−d2)=1−N(d2), and likewise N(−d1)=1−N(d1).

BSM Model with Carrying Benefits or Costs ​

With a continuous yield γ on the underlying (a dividend yield, or a foreign interest rate for currency options), replace S0 by S0e−γT:

C0=S0e−γTN(d1)−Xe−rfcTN(d2)P0=Xe−rfcTN(−d2)−S0e−γTN(−d1)d1=ln⁡(S0X)+(rfc−γ+σ22)TσTd2=d1−σT

A higher yield lowers the call's value and raises the put's: the holder of the option does not receive the yield.

Options On Future ​

Position ​

The position in the futures depends on the position in the option:

  • Long call → Long futures position
  • Long put → Short futures position

The strike price X is set in the option. At the option's expiry m, with the futures price Fm(n): a long call is exercised if Fm(n)>X; a long put is exercised if Fm(n)<X. On exercise, the futures position is marked to market at once, so the holder receives Fm(n)−X (call) or X−Fm(n) (put) in cash.

Black Model ​

The Black model is BSM with the futures price in place of the spot price. A futures position costs nothing to hold, so its "yield" equals the risk-free rate, and both terms are discounted:

C0=e−rfcT[F0N(d1)−XN(d2)]P0=e−rfcT[XN(−d2)−F0N(−d1)]d1=ln⁡(F0(T)X)+σ22TσTd2=d1−σT

where F0=F0(T) is today's futures price and T is the option's time to expiry.

IMPORTANT

In practice, options on futures are often American, and the option usually expires on or shortly before the futures' own expiry.

Interest Rate Option ​

The contract is similar to an option on futures and to an FRA. The position judgement and exercise case are exactly the same as for options on futures, with the FRA rate as the underlying: an interest rate call pays off when the rate rises above X (like a long FRA), a put when it falls below.

C0=NP×(n−m)30360×e−rfcn30360×(FRm×nN(d1)−XN(d2))P0=NP×(n−m)30360×e−rfcn30360×(XN(−d2)−FRm×nN(−d1))
  • m: months until the option expires and the rate is set; n: months until the interest is paid. So the payoff is discounted over n months, and the accrual period is (n−m) months.
  • FRm×n: today's forward rate for the period from m to n; X: the exercise rate. In d1, F0(T) is replaced by FRm×n.
  • A cap is a series of interest rate calls (caplets) and a floor a series of puts (floorlets). Long a cap and short a floor at the same exercise rate is a pay-fixed swap.

Swaption ​

A swaption is an option to enter a swap:

  1. A payer swaption is an option to enter into a swap as the fixed-rate payer (Long). It gains when rates rise: a call on the swap rate.
  2. A receiver swaption is an option to enter into a swap as the fixed-rate receiver (Short). It gains when rates fall: a put on the swap rate.
C0=NP×AP×PVA×(RfixN(d1)−RXN(d2))P0=NP×AP×PVA×(RXN(−d2)−RfixN(−d1))
  • Rfix: the forward swap rate today, for a swap starting at the option's expiry; RX: the exercise (fixed) rate.
  • AP: the accrual period of each swap payment (e.g., 0.25 for quarterly).
  • PVA: the present value annuity factor, the sum of the discount factors for the swap's payment dates.
  • Payer minus receiver swaption, at the same exercise rate, is a forward pay-fixed swap (put-call parity).

Greeks ​

From Black-Scholes model,

C0=S0N(d1)−Xe−rfcTN(d2)

We can understand it as a function of five inputs:

C0=f(S0,X,rfc,T,σ)

The Greeks are its partial derivatives: each measures the option's sensitivity to one input, holding the others constant.

δ is defined as:

δ=∂C0∂S0

γ is defined as:

γ=∂2C0∂S02=∂δ∂S0

θ is defined as:

θ=∂C0∂t

i.e., the change in value as time passes (as T shrinks).

υ (vega) is defined as:

υ=∂C0∂σ

ρ is defined as:

ρ=∂C0∂rfc
GreekCallPutNotes
Delta δ0 to 1−1 to 0Largest change near the money
Gamma γ>0>0 (same as call)Highest at the money
Theta θUsually <0Usually <0Time decay
Vega υ>0>0 (same as call)Highest at the money
Rho ρ>0<0Small for short-dated options

Delta ​

For non-dividend paying stock: δcall=N(d1), δput=−N(−d1)=N(d1)−1.

NOTE

In this case, δcall=δput+1

For dividend-paying stock, where δ here is denoting the dividend rate:

Δcall=e−δTN(d1)Δput=−e−δTN(−d1)

NOTE

δ is between (0,1) for call and (−1,0) for put. It changes most sharply near the money, and more so as expiration gets closer.

Delta and gamma together approximate the change in the option's value for a change in the stock price:

ΔC≈δΔS+12γ(ΔS)2

A delta-neutral portfolio holds −δ shares per long option (or δ shares per short option), so small stock moves leave its value unchanged.

Gamma ​

NOTE

γ and δ are just convexity and duration in fixed income: the second- and first-order sensitivities to the underlying.

γ reaches its max when at the money. For an at-the-money option, γ increases as expiration gets closer. For deep in-the-money and out-of-the-money options, γ decreases as expiration gets closer.

NOTE

γ neutral strategy can be built by combining positions of options, then further build δ neutral strategy by add position of underlying stock (since stock has no γ).

Theta ​

Theta is usually negative for both call and put options, as they lose value as time passes (time decay). With:

  • Exception: deep in-the-money European put options, which can gain value over time, as the strike they will receive gets closer to being paid.

Vega and Rho ​

  • Vega is positive for both calls and puts: higher volatility raises the chance of large payoffs, while the loss is limited to the premium. It is highest at the money, and is the only Greek that needs a forecast (the volatility).
  • Rho is positive for calls and negative for puts: a higher rate lowers the present value of the exercise price, which the call holder pays and the put holder receives.